import request from '@/utils/request'

// 查询房源表列表
export function listHouse(query) {
  return request({
    url: '/basic/house/list',
    method: 'get',
    params: query
  })
}

// 查询房源表详细
export function getHouseInfo(houseId) {
  return request({
    url: '/basic/house/' + houseId,
    method: 'get'
  })
}

// 新增房源表
export function addHouse(data) {
  return request({
    url: '/basic/house/create',
    method: 'post',
    data: data
  })
}

// 修改房源表
export function updateHouse(houseId,data) {
  return request({
    url: '/basic/house/update/' + houseId,
    method: 'post',
    data: data
  })
}

// 删除房源表
export function delHouse(houseId) {
  return request({
    url: '/basic/house/' + houseId,
    method: 'delete'
  })
}
